import React from "react";
class Tabs extends React.Component {
  render() {
    return (
      <div className="tabs-order">
        {this.props.tabs.map((item, index) => (
          <div className={this.props.active === item.type ? 'on' : ''} key={index} onClick={() => this.props.Label(item.type)}>按{item.name}排序</div>
        ))}
      </div>
    )
  }
}

export default Tabs